<td id="edit_table" colspan="4">
  <%remote_form_for :table,@table,:url=>{:controller=>'tables',:action=>'update',:id=>@table.id},:method=>'put'  do |f|%>
      <div id="errors" style="display:none">
      </div>
      <br/>
      <div class="fields text_fields">
        <%= f.label :name,"餐桌号" %><%= f.text_field :name %><br clear="all"/>
      </div>
      <div class="fields select_fields">
        <%= f.label :type,'餐桌类型:' %><%=f.collection_select :type,Table::OPTIONS,:id,:name%><br clear="all"/>
      </div>
      <div class="buttons">
        <div class="lt_button">
          <%= f.submit '保存餐桌信息',:class=>'submit'%>
        </div>
      </div>
  <%end%>
</td>